/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.elcom.emocbc.util;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.commons.dbutils.ResultSetHandler;

/**
 *
 * @author GiangLT
 */
public class FloatResultSetHandler implements ResultSetHandler<Float> {

    @Override
    public Float handle(ResultSet rs) throws SQLException {
        Float result = null;
        if(rs.next()) {
            result = rs.getFloat(1);
        }
        return result;
    }
}
